const path = require("path");
const resolve = function(dir) {
  return path.join(__dirname, dir);
};

module.exports = {
  devServer: {
    overlay: {
      warnings: false,
      errors: true
    }
  },
  lintOnSave: process.env.NODE_ENV !== "production",
 // set path alias
  chainWebpack: config =>
    config.resolve.alias
      .set("assets", resolve("src/assets"))
      .set("components", resolve("src/components"))
      .set("views", resolve("src/views"))
      .set("router", resolve("src/router"))
      .set("store", resolve("src/store"))
};
